package com.example.day06;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Demo12 {
    public static void main(String[] args) {
        int[] arr = new int[6];
        Scanner sc = new Scanner(System.in);
//        System.out.println("请输入第一个评委的打分：");
//        arr[0] = sc.nextInt();
//        System.out.println("请输入第二个评委的打分：");
//        arr[1] = sc.nextInt();
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入第" + (i + 1) + "个评委的打分：");
            arr[i] = sc.nextInt();
        }
        printArray(arr);

    }

    public static void printArray(int[] arr) {
        System.out.print("【");
        for (int i = 0; i < arr.length; i++) {
            if (i == arr.length - 1) {
                System.out.print(arr[i]);
            } else {
                System.out.print(arr[i] + ",");
            }
            System.out.print("】");
        }
    }
}
